package com.ken.forum.dao;

import com.ken.forum.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {
    int insert(Message row);

    int insertSelective(Message row);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message row);

    int updateByPrimaryKey(Message row);

    Long selectByNum(Long userId);

    List<Message> selectByReceiveUserId(Long receiveUserId);
}